package protocol

// HeartbeatData 心跳数据
type HeartbeatData struct {
	ClientID string `json:"client_id"`
}

// NewHeartbeatMessage 创建心跳消息
func NewHeartbeatMessage(clientID string) *Message {
	return &Message{
		Event: EventHeartbeat,
		Data: HeartbeatData{
			ClientID: clientID,
		},
		Timestamp: 0, // 由发送方设置
		Sequence:  0, // 由发送方设置
	}
}
